package com.aos.erp.fs.show;

import com.aos.erp.fs.enums.FileUriType;
import com.aos.erp.fs.model.SysFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface FileView {

    FileUriType getUriType();

    void render(HttpServletRequest request, HttpServletResponse response, SysFile sysFile);


    default void fileNotFound(HttpServletRequest request, HttpServletResponse response) {
        response.setStatus(404);
    }

}
